Entry
A base Entry for configs.
Performs 10 basic functions
serialize contents
deserialize input
validate updates
correct errors
provide widgets
apply inputs
supply outputs
create instances
manages flags
accepts listeners
Author
fzzyhmstrs
Since
0.2.0, add EntryFlag 0.5.6, add listenToEntry 0.6.0
Parameters
the non-null type of the Entry stored value
Inheritors
Functions
Corrects an attempted input, as possible. When correction isn't possible or deterministic, simply validate the entry the same way you would for EntryValidator
Specialized equals
method for determining if a newly deserialized value is effectively equal to its old counterpart.
Deserializes the provided TomlElement. This deserialization should store the result within this deserializer (deserialize "in-place") as well as returning the result. The return has to have a fallback value.
Creates as deep a copy as possible of this Entry
Tests an arbitrary input to determine if it is a valid input to this Entry. Inputs are not (necessarily) Entry, the term is used here in the general sense
Applies a listener to this entry. The consumer(s) passed be invoked whenever the value of this Entry is updated
Serializes either the provided input or stored value to a TomlElement
Validates an input per the provided validation type.
Builds a new ClickableWidget and applies a tooltip to it. This shouldn't need to be overridden in most cases
Builds a new ClickableWidget for use in a config GUI. If the widget is presenting options that could be filtered by the optional ChoiceValidator, those possible selections should be filtered in some way by the validator before presenting to the user.